<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title></title>
<script language="javascript" type="text/javascript" src="http://www.ucmaim.com/Public/Ucmaim/Admin/js/jquery.js"></script>
<script src="http://www.ucmaim.com/Public/Ucmaim/Admin/js/frame.js" language="javascript" type="text/javascript"></script>
<link href="http://www.ucmaim.com/Public/Ucmaim/Admin/css/style.css" rel="stylesheet" type="text/css" />

<!--[if IE 6]>
<script src="http://www.ucmaim.com/Public/Ucmaim/Admin/js/DD_belatedPNG.js" language="javascript" type="text/javascript"></script>
<script>
  DD_belatedPNG.fix('.nav ul li a,.top_link ul li,background');   /* string argument can be any CSS selector */
</script>
<![endif]-->
</head>
<body class="showmenu">
<table width="100%" height="31px" border="0" cellpadding="0" cellspacing="0" class="left_topbg" id="table2">
    <tr>
        <td height="31">
            <div class="titlebt">
                    修改商品
            </div>
        </td>
    </tr>
</table>

<div class="main">
    <div class="form">
        <?php $do = I('get.do'); ?>
        <form method='post' id="form_do" name="form_do" enctype="multipart/form-data" action="<?php echo U('Admin/Goods/Lists', 'do=Edit');?>">
            <dl>
                <dt> <span class="red">* </span>标题：</dt>
                <dd>
                    <input type="text" name="goods_title" class="inp_one" value="<?php echo ($goods["goods_title"]); ?>" placeholder="" required/>
                </dd>
            </dl>

            <!--dl>
                <dt> 每份数量：</dt>
                <dd>
                    <input type="text" name="goods_amount"  class="inp_one" value="<?php echo ($goods["goods_amount"]); ?>" placeholder="" />
                </dd>
            </dl-->

            <dl>
                <dt> 价格：</dt>
                <dd>
                    <input type="text" name="goods_price"  class="inp_one" value="<?php echo ($goods["goods_price"]); ?>" placeholder="" />
                </dd>
            </dl>

            <dl>
                <dt> 发布数量：</dt>
                <dd>
                    <input type="text" name="goods_storage"  class="inp_one" value="<?php echo ($goods["goods_storage"]); ?>" placeholder="" />
                </dd>
            </dl>

            <dl>
                <dt> 游戏区服：</dt>
                <dd>
                    <?php if(is_array($goods["goods_relation"])): $key = 0; $__LIST__ = $goods["goods_relation"];if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$v): $mod = ($key % 2 );++$key; $t = count($goods['goods_relation']); ?>
                        <?php if($key > 1): echo ($v["gc_name"]); if($key < $t): ?>/<?php endif; endif; endforeach; endif; else: echo "" ;endif; ?>
                </dd>
            </dl>

            <dl>
                <dt> 卖家联系方式：</dt>
                <dd>
                    手机号码:<span type="text" class="inp_one" style="border: none;"><?php echo (replacement($goods["goods_mobile"])); ?></span>
                    QQ:<span type="text" class="inp_one" style="border: none;"><?php echo (replacement($goods["goods_qq"])); ?></span>
                </dd>
            </dl>

	        <dl>
		        <dt> 支付宝账号：</dt>
		        <dd>
			        <?php echo (replacement($goods["goods_alipay"])); ?>
		        </dd>
	        </dl>

	        <dl>
		        <dt> 游乐淘账号：</dt>
		        <dd>
			        <?php echo (replacement($goods["goods_tao"])); ?>
		        </dd>
	        </dl>

            <dl><dt>图片：</dt>
                <dd><?php if(empty($goods['goods_pic'])): ?>用户没有上传图片
                    <?php else: ?>
                    <?php if(is_array($goods["goods_pic"])): $key = 0; $__LIST__ = $goods["goods_pic"];if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$v): $mod = ($key % 2 );++$key;?><a href="http://<?php echo ($_SERVER['HTTP_HOST']); ?>/Application/Ucmaim/Uploads/<?php echo ($v); ?>" target="_blank">
                        <img src="http://<?php echo ($_SERVER['HTTP_HOST']); ?>/Application/Ucmaim/Uploads/<?php echo ($v); ?>" style="max-width: 120px;max-height: 120px"></a><?php endforeach; endif; else: echo "" ;endif; endif; ?></dd>
            </dl>

            <dl>
                <dt> 详细说明：</dt>
                <dd>
                    <textarea rows="5" name="goods_content" placeholder=""  ><?php echo ($goods["goods_content"]); ?></textarea>
                </dd>
            </dl>



            <div class="form_b">
                <input type="hidden" name="goods_id" value="<?php echo ($goods["goods_id"]); ?>">
                <input type="submit" class="btn_blue" id="submit" value="提 交">
                <input type="button" class="btn_blue" value="返 回" onclick="history.go(-1);">
            </div>
        </form>
    </div>
</div>